/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ejercicio5;

import java.util.Scanner;

/**
 *
 * @author Juan
 */
public class Ejercicio5 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String nome;
        double n1,n2,n3,n4;
        Alumno A;
        System.out.print("Nombre del Alumno: ");
        nome = in.nextLine();
        System.out.print("Ingrese nota1: ");
        n1 = in.nextDouble();
        System.out.print("Ingrese nota2: ");
        n2 = in.nextDouble();
        System.out.print("Ingrese nota3: ");
        n3 = in.nextDouble();
        System.out.print("Ingrese nota4: ");
        n4 = in.nextDouble();
        A = new Alumno(nome, n1, n2, n3, n4);        
        System.out.println("Hola: "+nome);
        System.out.println("La nota eliminada es: "+A.notaMenor());   
        // Print 
        System.out.println("EL promedio es: "+A.promedio());
        System.out.println("Condición: "+A.condicion());
    }
    
}
